import { RouteRecordRaw } from 'vue-router'

/**
 * 静态路由列表
 */
export const routes: Array<RouteRecordRaw> = [
  {
    path: '',
    name: 'Layout',
    redirect: '/home',
    meta:{
      title: '首页',
      menuName: '首页',
      ignore: true
    },
    component: () => import('@/components/layout/TpLayout.vue'),
    children: []
  },
  {
    path: '/login',
    name: 'Login',
    meta: {
      ignore: true
    },
    component: () => import('@/views/LoginView.vue')
  },
  {
    // 404页面配置
    path: '/:catchAll(.*)',
    meta: {
      ignore: true
    },
    component: () => import('@/views/error/404.vue')
  }
]